package cn.edu.hust.cm.glideimagedemo;

import android.content.Context;
import android.util.AttributeSet;

import cn.edu.hust.cm.widgets.GlideImageView;

/**
 * 正方形的ImageView
 * <p>
 * Created by kingcmchen on 2017/1/22.
 */

public class SquareImageView extends GlideImageView {
    public SquareImageView(Context context) {
        super(context);
    }

    public SquareImageView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public SquareImageView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public SquareImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
    }

    @Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        super.onMeasure(widthMeasureSpec, widthMeasureSpec);
    }
}
